﻿#include"offsetSolve/Inc/offsetSolve.h"

offsetSolve::offsetSolve(Point2f center, double offsetX,double offsetY)
{
    _centerPoint = center;
    _offsetX =offsetX;
    _offsetY = offsetY;
}

void offsetSolve::setOffSetX(double X)
{
    _offsetX = X;
}
void offsetSolve::setOffSetY(double Y)
{
    _offsetY = Y;
}
Point2f offsetSolve::getoffsetArmor(Point2f center)
{
    center.x += _offsetX;
    center.y -= _offsetY;
    return center;
}

Point2f offsetSolve::getoffsetBuff(Point2f center)
{
    center.x += _offsetX;
    center.y -= _offsetY;
    return center;
}
